<!-- Entities -->

<!ENTITY ti.Constant       "Constant">
<!ENTITY ti.DataType       "DataType">
<!ENTITY ti.RecordElement  "RecordElement">
<!ENTITY ti.Package        "Package">

<!-- Elements -->

<!ELEMENT Constant  (%C.DefAttr;, ATTRLink*, ArrayElementConstant*, RecordElementConstant*, GenAttrList?)>
<!ELEMENT ArrayElementConstant  (DESC?, ATTRLink*, ArrayElementConstant*, RecordElementConstant*, GenAttrList?)>
<!ELEMENT RecordElementConstant (DESC?, ATTRLink*, ArrayElementConstant*, RecordElementConstant*, GenAttrList?)>


<!ATTLIST Constant %A.ConfigItem;
    Value           CDATA ''
    DataTypeLink    NMTOKEN #FIXED "&ti.DataType;"
    PackageLink     NMTOKEN #FIXED "&ti.Package;"
    Generate        (NONE|CONST|DEFINE) "NONE"
    LiteralName     CDATA ''
    ValueSpec       (Text|Numeric|Array|Record|AppValue|ConstRef) "Numeric"
    IsNumericApp    CDATA '1'
    ConstRefLink    NMTOKEN #FIXED "&ti.Constant;"
>

<!ATTLIST ArrayElementConstant %A.ChildItem;
    Value           CDATA ''
    ArrayIndex      CDATA '0'
    LiteralName     CDATA ''
    ValueSpec       (Text|Numeric|Array|Record|AppValue|ConstRef) "Numeric"
    IsNumericApp    CDATA '1'
    ConstRefLink    NMTOKEN #FIXED "&ti.Constant;"
>

<!ATTLIST RecordElementConstant %A.ChildItem;
	Value           CDATA ''
	RecordElementLink NMTOKEN #FIXED "&ti.RecordElement;"
    LiteralName     CDATA ''
    ValueSpec       (Text|Numeric|Array|Record|AppValue|ConstRef) "Numeric"
    ConstRefLink    NMTOKEN #FIXED "&ti.Constant;"
    IsNumericApp    CDATA '1'
    OrderIndex      CDATA '0'
>


<!-- Links -->

<!ELEMENT ConstantLink EMPTY>

<!ATTLIST ConstantLink 
    %A.LinkGUID;
    %A.LinkChildGUID;
    %A.LinkVersion;
    %A.LinkType; "&ti.Constant;"
>
